package com.type.TypingDetector;

public class Comparison {

		private AcceleromterUpdated.PREDICTION_TYPE type;
		private String name;
		private double dominantFrequencies;
		private double average;
		private double maxAmplitude;
		private double minAmplitude;
		
		public Comparison(AcceleromterUpdated.PREDICTION_TYPE tpe, double frqs, double avg)
		{
			type = tpe;
			dominantFrequencies = frqs;
			average = avg;
		}
		
		public Comparison(AcceleromterUpdated.PREDICTION_TYPE tpe, double frqs, double avg, double maxA, double minA)
		{
			type = tpe;
			dominantFrequencies = frqs;
			average = avg;
			setMaxAmplitude(maxA);
			setMinAmplitude(minA);
		}
		
		public Comparison(String nam, double frqs, double avg, double maxA, double minA) {
			setName(nam);
			dominantFrequencies=frqs;
			average=avg;
			maxAmplitude=maxA;
			minAmplitude=minA;
		}
		
		public AcceleromterUpdated.PREDICTION_TYPE getType() {
			return type;
		}
		
		public double getFreq() {
			return dominantFrequencies;
		}
		
		public double getAvg() {
			return average;
		}

		public void setMaxAmplitude(double maxAmplitude) {
			this.maxAmplitude = maxAmplitude;
		}

		public double getMaxAmplitude() {
			return maxAmplitude;
		}

		public void setMinAmplitude(double minAmplitude) {
			this.minAmplitude = minAmplitude;
		}

		public double getMinAmplitude() {
			return minAmplitude;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getName() {
			return name;
		}
}
